//引入封装的reuest请求
const {
  request
} = require("./request.js");
//基于业务封装的接口
module.exports = {
  // 上传文件
  uploadFile() {
    return request({
      url: "/dev-api/common/upload",
      method: "POST",
	  needToken :true,
    });
  },
  
  // 获取派出所列表
  getPcsList() {
    return request({
      url: "/system/dept/getList",
      method: "GET",
  	  needToken :false,
    });
  },
  
  // 查询民族接口
  getNationality() {
    return request({
      url: "/system/dict/data/getlist?dictType=nationality",
      method: "GET",
  	  needToken :false,
    });
  },
  
  // 查询建筑性质
  getJzxz() {
    return request({
      url: "/system/dict/data/getlist?dictType=building_nature",
      method: "GET",
  	  needToken :false,
    });
  },
  
  // 查询经济性质
  getJjxz() {
    return request({
      url: "/system/dict/data/getlist?dictType=economic_nature",
      method: "GET",
  	  needToken :false,
    });
  },
  
  // 查询籍贯/社区
  getJgSq() {
    return request({
      url: "/system/domicile/getlist",
      method: "GET",
  	  needToken :false,
    });
  },
  
  // 查询户籍属性
  getHjsx() {
    return request({
      url: "/system/dict/data/getlist?dictType=sys_registered",
      method: "GET",
  	  needToken :false,
    });
  },
  
  // 查询办理事项
  getBlsx() {
    return request({
      url: "/system/dict/data/getlist?dictType=sys_handl_matters",
      method: "GET",
  	  needToken :false,
    });
  },
  
  // 查询性别
  geAgent() {
    return request({
      url: "/system/dict/data/getlist?dictType=sys_user_sex",
      method: "GET",
  	  needToken :false,
    });
  },
  
  // 经营项目
  jgxmList() {
    return request({
      url: "/system/dict/data/getlist?dictType=sys_business_project",
      method: "GET",
  	  needToken :false,
    });
  },
  
  // 经营状态
  jyztList() {
    return request({
      url: "/system/dict/data/getlist?dictType=sys_business_status",
      method: "GET",
  	  needToken :false,
    });
  },
  
  // 经营模式
  jymsList() {
    return request({
      url: "/system/dict/data/getlist?dictType=sys_business_pattern",
      method: "GET",
  	  needToken :false,
    });
  },
  
  // 场所等级
  csdjList() {
    return request({
      url: "/system/dict/data/getlist?dictType=sys_place_level",
      method: "GET",
  	  needToken :false,
    });
  },
  
  // 客服历史记录
  getKfList(data) {
    return request({
      url: "/system/message/getChatMessage",
      method: "post",
  	  needToken :false,
	  data
    });
  },
  
  // 客服历史记录1
  getltList(data) {
    return request({
      url: "/system/message/getChatUserList",
      method: "post",
  	  needToken :false,
  	  data
    });
  },
  
  // 修改已读未读
  getxgList(data) {
    return request({
      url: "/system/message/updateChatMessageStatus",
      method: "post",
  	  needToken :false,
  	  data
    });
  },
}


 